home *** CD-ROM | disk | FTP | other *** search
- Path: watnews.watson.ibm.com!usenet
- From: Guillaume Laurent <glaurent@nissart.lagaude.ibm.com>
- Newsgroups: comp.lang.c
- Subject: Re: Something to play with.
- Date: 08 Feb 1996 11:23:52 +0100
- Organization: IBM La Gaude Research Center
- Sender: glaurent@nissart.lagaude.ibm.com
- Message-ID: <7kka1yf747.fsf@nissart.lagaude.ibm.com>
- References: <4eist1$9fk@airdmhor.gen.nz> <31120ED7.5266@ntostud.mh.se>
- Reply-To: glaurent@worldnet.net
- NNTP-Posting-Host: nissart.lagaude.ibm.com
- In-reply-to: Roger Martensson's message of Fri, 02 Feb 1996 13:17:11 +0000
- X-Newsreader: Gnus v5.0.4
-
- In article <31120ED7.5266@ntostud.mh.se> Roger Martensson <ping9535@ntostud.mh.se> writes:
-
- > Simon Hosie wrote:
- > >
-
- > > If anyone gets any kind of warning or error comiling this or anything it
- > > generates, please let me know.
-
- I didn't get any on AIX 3.2.5 cc.
-
- > It compiled quite nice, but it would be nice to know what this
- > program does? (Didn't dare to run the program)
-
- Well, if I understand correctly (Mr Hosie will correct me if I'm
- wrong), it's a kind of compressor, like gzip, called gbcode. What is
- special with it is that it can generate C code from a given file. What
- for ? you ask. Well, once this very awkward C code is compiled,
- running the resulting executable will generate the file you initally
- compressed.
-
- For instance, let's say you have a file called "foo" :
-
- gbcode C foo proto_foo.c ; # Generates a C file like the one Mr Hosie posted, called proto_foo.c
-
- cc -o proto_foo proto_foo.c ; # Will create the proto_foo executable
-
- <rename foo in foo.org, if still working in the same directory>
-
- proto_foo ; # Will recreate the file "foo".
-
- What he did was simply to use gbcode on its source and post the
- result.
-
- Quite elegant, really. Have you ever consider participating the
- Obfuscated C Code contest ?
- --
- --
- Guillaume
-
-